#!/bin/sh
E_BADARGS=65

if [ "$#" -eq 1 ] || [ "$#" -eq 2 ]
then
  echo "Starting db backup ..."
else
  echo "Usage: `basename $0` {backupID}"
  exit $E_BADARGS
fi

echo creating db backup files
mysqldump --user=mzm --password=mzm mzm > ${BACKUP_DIR}/mzm-$1.db-backup 
